<?php
class M_system_settings extends MY_Model {

	protected $_table = 'system_settings';
	protected $_timestamp = false;
	
	public function __construct()
	{
		parent::__construct();
	}

	/**
	 * Get System Settings per field
	 * @param string $field
	 * @return bool true/false
	 */
	public function get_setting($field)
	{
		$q = $this->db->select($field)->where($field,1)->limit(1)->get('system_settings');
		return $q->num_rows() > 0 ? TRUE : FALSE;
	}
}	
